package com.pond.pond.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pond.pond.domain.DeptFacilityRelation;
import com.pond.pond.domain.dto.PondFacilityDTO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Delete;

public interface DeptFacilityRelationMapper extends BaseMapper<DeptFacilityRelation> {

    @Delete("DELETE FROM dept_facility_relation WHERE dept_id = #{deptId}")
    void deleteByDeptId(@Param("deptId") Long deptId);

    int batchInsert(PondFacilityDTO pondFacilityDTO);
}
